-- GENERATED SPELL FOR [Cavern Lurker] --


function spell0_12223(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12223', 2319, 1)
end

function Sorts_12223(pUnit, Event)
local choix_sorts_12223 = math.random(0, 0)
if choix_sorts_12223 == 0 then
pUnit:RegisterEvent('spell0_12223', 1, 1)
end
end

function mob12223_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12223', math.random(1500, 3000), 1)
end

function mob12223_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12223_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12223_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12223, 1, 'mob12223_Action')
RegisterUnitEvent(12223, 2, 'mob12223_Leave')
RegisterUnitEvent(12223, 3, 'mob12223_Kill')
RegisterUnitEvent(12223, 4, 'mob12223_Die')
